#include <stdio.h>
#include "drawingListener.h"
#include "drawingEvent.h"

DrawingListener::DrawingListener(int sub)
{
	drawing_event_subtype = sub;
}

DrawingListener::~DrawingListener()
{
	
}

bool DrawingListener::check_event(Event* evt)
{
	if (evt->get_type() == DRAWING_EVENT_TYPE)
	{
		DrawingEvent* devt = (DrawingEvent*)evt;
		if (devt->get_subtype() == drawing_event_subtype)
		{
			return true;
		}
		else return false;
	}
		
	else return false;
}

const char* DrawingListener::name()
{
	return "DrawingListener";
}
